package com.hourse.app.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @作者：lichenguang
 * @描述：【外部账号信息（三方账户信息）】
 * @创建：2022/2/14 9:52
 */
@Data
@Entity
@Table(name = "external_account")
public class ExternalAccountEntity implements Serializable {

  @Id
  @GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator")
  @GeneratedValue(generator = "uuid")
  @Column(updatable = false, columnDefinition = "varchar(100) COMMENT '创建人'")
  private String id;

  @Column(updatable = false, columnDefinition = "datetime COMMENT '创建时间'")
  private Date createTime;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT '创建人'")
  private String createUser;

  @Column(updatable = false, columnDefinition = "datetime COMMENT '修改时间'")
  private Date updateTime;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT '修改人'")
  private String updateUser;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT '账户主键'")
  private String userId;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT '三方平台'")
  private String platform;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT 'uKey'")
  private String uKey;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT 'uSecret'")
  private String uSecret;

  @Column(updatable = false, columnDefinition = "varchar(60) COMMENT '交易密码'")
  private String passphrase;

  @Column(updatable = false, columnDefinition = "varchar(5) COMMENT '是否配置成功，0：否，1：是'")
  private String dispostState;

  @Column(updatable = false, columnDefinition = "varchar(5) COMMENT '是否使用，0：否，1：是'")
  private String isUse;

  @Column(updatable = false, columnDefinition = "varchar(5) COMMENT '是否可用,0：不可用，1：可用'")
  private String isAvailable;

}
